/*
 * Try This 2-1
 * Compute the distance to a lightning
 * strike whose sound takes 7.2 seconds
 * to reach you.
 */
class Sound {
    public static void main(String args[]) {
        double dist;

        dist = 7.2 * 1100; // Sound travels at 1,100 ft per second.

        System.out.println("The lightning is " + dist + " feet away.");

        /*  
         *  Distance between you and lightning, 
         *  if an echo was heard in 7.2 seconds.
         */
        dist = 7.2 * 1100 / 2; 

       System.out.println("If you heard echo from lightning, it is "
              + dist + 
             " feet from you."); 
    }
}

